<?php
class Zend_Controller_Action_Helper_FormBuilder extends Zend_Controller_Action_Helper_Abstract
{
	public $t;

	public function __construct()
	{
		$this->t = Zend_Registry::get('Zend_Translate');
	}

	public function direct($field, $name, $value = 0)
	{
		return $this->$field($name);
	}

	public function text($name)
	{
		$element = new Zend_Form_Element_Text($name);
		$element->setLabel($this->t->_($name));
		$element->addFilter('StripTags');
		$element->addFilter('StringTrim');

		return $element;
	}

	public function textarea($name)
	{
		$element = new Zend_Form_Element_Textarea($name);
		$element->setLabel($this->t->_($name));
		$element->addFilter('StripTags');

		return $element;
	}

	public function date()
	{

	}
}